package com.rstrulak.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author Robert Strulak
 *
 */
@Entity
@Table(name = "CONTEXT")
public class Context implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6344181321064972082L;
	private Long id;
	private String name;
	private String description;

	@Id
	@GeneratedValue(generator = "gen_context")
	@SequenceGenerator(name = "gen_context", sequenceName = "CONTEXT_SEQ")
	@Column(name = "CONTEXT_ID", nullable = false, unique = true)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESCRIPTION", nullable = false)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
